package _15_generics._15_7;

/**
 * 泛型的边界
 */
public class _04_Manipulator2<T extends HasF> {
    private T obj;
    public _04_Manipulator2(T x) {
        this.obj = x;
    }
    public void manipulate() {
         obj.f();
    }

    public static void main(String[] args) {
        _04_Manipulator2 m = new _04_Manipulator2(new HasF());
        m.manipulate();
    }
}
